package com.qf.cosmetology.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Order)实体类
 *
 * @author makejava
 * @since 2021-06-22 11:14:13
 */
public class Order implements Serializable {
    private static final long serialVersionUID = 616239510309026118L;

    private Integer oId;
    /**
     * 留言
     */
    private String message;


    /**
     * 预约时间
     * @DateTimeFormat  解决的是前端的时间字符串往服务器的时间date格式转化
     * @JsonFormat  解决后台端时间Json格式化以后的时间戳问题和数据库时差问题
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd mm:hh")
    @JsonFormat(pattern = "yyyy-MM-dd mm:hh",timezone = "GMT+8")
    private Date dur;
    /**
     * 提交时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd mm:hh")
    @JsonFormat(pattern = "yyyy-MM-dd mm:hh",timezone = "GMT+8")
    private Date subtime;


    /**
     * 预约状态
     */
    private Integer status;

    /**
     * 用户
     */
    private Integer uId;


    /**
     * 项目名称
     */
    private String suName;
    /**
     * 商家名称
     */
    private String sName;
    /**
     * 微信名称
     */
    private String wxName;
    /**
     * 验证码
     */
    private String code;
    /**
     * 电话
     */
    private String tel;
    /**
     * 用户别名
     */
    private String uName;

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public Integer getoId() {
        return oId;
    }

    public void setoId(Integer oId) {
        this.oId = oId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getDur() {
        return dur;
    }

    public void setDur(Date dur) {
        this.dur = dur;
    }

    public Date getSubtime() {
        return subtime;
    }

    public void setSubtime(Date subtime) {
        this.subtime = subtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getSuName() {
        return suName;
    }

    public void setSuName(String suName) {
        this.suName = suName;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String getWxName() {
        return wxName;
    }

    public void setWxName(String wxName) {
        this.wxName = wxName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }
}
